<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/17 0017
 * Time: 10:18
 */
require_once __DIR__.'/pdfparse/autoload.php';
class PDFReader
{
    //获取pdf文本信息
    public static function getPDFcontentText($path)
    {
        $pdf_parse = new \Smalot\PdfParser\Parser();
        $pdf = $pdf_parse->parseFile($path);
        return $pdf->getText();
    }
}